import {
  ElMain,
  ElHeader,
  ElFooter,
  ElAside,
  ElContainer,
  ElMessage,
  ElInput,
  ElAlert,
  ElButton,
  ElRow,
  ElCol,
  ElSpace,
  ElLink,
  ElDescriptions,
  ElDescriptionsItem,
  ElTag,
  ElLoading,
  ElMenu,
  ElMenuItem
} from 'element-plus'

import locale from 'element-plus/lib/locale'
import lang from 'element-plus/lib/locale/lang/zh-cn'
ElLink.props.underline.default = false

export default (app) => {
  locale.use(lang)
  app.config.globalProperties.$message = ElMessage
  app.use(ElMain)
  app.use(ElHeader)
  app.use(ElFooter)
  app.use(ElAside)
  app.use(ElContainer)
  app.use(ElInput)
  app.use(ElAlert)
  app.use(ElButton)
  app.use(ElRow)
  app.use(ElCol)
  app.use(ElSpace)
  app.use(ElLink)
  app.use(ElDescriptions)
  app.use(ElDescriptionsItem)
  app.use(ElTag)
  app.use(ElLoading)
  app.use(ElMenu)
  app.use(ElMenuItem)
}
